#!/usr/bin/perl -w
print "Enter string\n";
while (<>) {
chomp;
  if (/(.*a\b)/) {
  print "word contain a is '$1' \n";
  last;
  } else {
    print "No match |$_|\n";
    }
}
